<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./lib/vue.js"></script>
    <title>Document</title>
</head>

<body>
<div id="app">
    <!-- vue的插值表达式-1    -->
    {{message}}王
    <p>
        <!-- vue的插值表达式-2    -->
        <div v-text="message">海王</div>
        <p>
            <!-- vue的插值表达式-3    -->
            <div v-html="message"></div>
            <p>
                <!-- vue的插值表达式-4    -->
                <input type="button" value="霸气" v-bind:title="message">
                <p>
                    <!-- v-dind的缩写: -->
                    <input type="button" value="霸气" :title="message">
                    <p>
                        <!-- 事件绑定指令 v-on -->
                        <input type="button" value="果实" v-on:click="btnclick()">
                        <p>
                            <!-- 事件绑定指令 v-on缩写@ -->
                            <input type="button" value="果实" @click="btnclick()">

</div>

<script>
    let vm = new Vue({
        el: '#app',
        data: { message: '<h6>王下七武海</h6>' },
        methods: {
            btnclick() {
                alert("路飞")

            }
        }
    });
</script>
</body>

</html>